package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hellobike.haxing.modules.wms.entity.CarOut;
import com.hellobike.haxing.modules.wms.mapper.CarOutMapper;
import com.hellobike.haxing.modules.wms.service.ICarOutService;
import org.springframework.stereotype.Service;

/**
 * @Description: t_wms_car_out
 * @Author: haxing-boot
 * @Date:   2020-02-02
 * @Version: V1.0
 */
@Service
public class CarOutServiceImpl extends ServiceImpl<CarOutMapper, CarOut> implements ICarOutService {

    @Override
    public CarOut getByCarOutCode(String carOutCode) {
        CarOut p = new CarOut();
        p.setCarOutCode(carOutCode);
        Wrapper<CarOut> wrapper = new QueryWrapper<>(p);
        return baseMapper.selectOne(wrapper);
    }
}
